package com.kaigejava.iterator.iterator;

import com.kaigejava.iterator.conventional.Waitress;

/**
 * Created by kaigejava on 2019/9/7.
 */
public class IteratorMainTest {
    public static void main(String[] args) {
        WaitressIterator mWaitress=new WaitressIterator();
        CakeHouseMenuIterator mCakeHouseMenu = new CakeHouseMenuIterator();
        DinerMenuIterator	mDinerMenu = new DinerMenuIterator();
        mWaitress.addIterator(mCakeHouseMenu.getIterator());
                mWaitress.addIterator(mDinerMenu.getIterator());
                mWaitress.printMenu();
                }
                }
